Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ssh breaking if kube context namespace changes #3897

Merged

Conversation

colinjc
Copy link
Contributor

@colinjc colinjc commented Aug 30, 2024

Switching the namespace of a kube context would cause ssh my_cluster to fail. This embeds the namespace into the ssh command so it doesn't lose track.

Created a namespace, ran ssh, changed the kubeconfig namespace, ran ssh again.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: conda deactivate; bash -i tests/backward_compatibility_tests.sh

@colinjc colinjc force-pushed the cc/bind-k8s-cluster-to-namespace branch from ba4b7e4 to 1f8186a Compare August 30, 2024 15:51
Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this @colinjc! LGTM.

sky/provision/kubernetes/utils.py Show resolved Hide resolved
@Michaelvll Michaelvll enabled auto-merge September 3, 2024 18:00
@romilbhardwaj
Copy link
Collaborator

Pushed a lint fix for @colinjc. Should auto-merge now.

@Michaelvll Michaelvll added this pull request to the merge queue Sep 4, 2024
Merged via the queue into skypilot-org:master with commit e3b9763 Sep 4, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants